package com.yuw.homework04;

public abstract class ColaEmployee {
    // 属性
    private String employeeName;
    private int employeebirthMonth;


    // 行为


    public ColaEmployee() {
    }

    public ColaEmployee(String employeeName, int employeebirthMonth) {
        this.employeeName = employeeName;
        this.employeebirthMonth = employeebirthMonth;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public int getEmployeebirthMonth() {
        return employeebirthMonth;
    }

    public void setEmployeebirthMonth(int employeebirthMonth) {
        this.employeebirthMonth = employeebirthMonth;
    }

    /**
     * 员工工资构成：生日金
     *
     * @param month 月份
     * @return 含有生日进的工资
     */
    public double getSalary(int month) {
        // 100元生日金工资
        if (this.employeebirthMonth == month) {
            return 100;
        } else {
            return 0.0;
        }
    }

    /**
     * 打印工资的行为规范
     *
     * @param currentMoth 打印工资的当前月份
     */
    public abstract void pirntSalary(int currentMoth);
}
